#ifndef _MQTT_H_
#define _MQTT_H_

#include "mqtt_client.h"
#include "esp_smartconfig.h"
#include "esp_log.h"

#define MQTT_ADDRESS    "mqtt://111.230.201.180"     //MQTT连接地址
#define MQTT_PORT       1883                        //MQTT连接端口号
#define MQTT_CLIENT     "ESP32S3"              //Client ID（设备唯一，大家最好自行改一下）
#define MQTT_USERNAME   "ESP32S3"                     //MQTT用户名
#define MQTT_PASSWORD   "ESP32S3"                  //MQTT密码

#define MQTT_PUBLIC_TOPIC      "v1/devices/me/rpc/response/"       //测试用的,推送消息主题
#define MQTT_SUBSCRIBE_TOPIC    "v1/devices/me/rpc/request/+"      //测试用的,需要订阅的主题

extern bool   s_is_mqtt_connected;
extern esp_mqtt_client_handle_t     s_mqtt_client;

void mqtt_start(void);

#endif